package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Schema(
        name = "Major",
        title = "专业表",
        description = ""
)
@TableName(value = "all_major")
public class Major {

    @Schema(title = "专业id", description = "")
    @TableId(value = "major_id")
    private Long id;

    @Schema(title = "学院id", description = "")
    @TableField(value = "faculty_id")
    private Long facultyId;

    @Schema(title = "专业名称", description = "")
    @TableField(value = "major_name")
    private String name;

    @Schema(title = "专业简介", description = "")
    @TableField(value = "major_intro")
    private String intro;
}
